package com.study.example.gameserver.module.backpack.resource;

import com.sparrow.resource.annotation.ID;
import com.sparrow.resource.annotation.Resource;

/**
 * 道具配置
 */
@Resource("config/ItemResource.xlsx")
public class ItemResource {
    @ID
    private int id;
    private String name;
    /**
     * 堆叠上限
     */
    private int stackLimit;
    /**
     * 类型
     */
    private int type;
    /**
     * 是否自动使用
     */
    private boolean autoUse;
    /**
     * 使用类型
     */
    private String useType;
    /**
     * 使用参数
     */
    private String useParam;

    public void setType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStackLimit() {
        return stackLimit;
    }

    public void setStackLimit(int stackLimit) {
        this.stackLimit = stackLimit;
    }

    public boolean isAutoUse() {
        return autoUse;
    }

    public void setAutoUse(boolean autoUse) {
        this.autoUse = autoUse;
    }

    public String getUseParam() {
        return useParam;
    }

    public void setUseParam(String useParam) {
        this.useParam = useParam;
    }

    public String getUseType() {
        return useType;
    }

    public void setUseType(String useType) {
        this.useType = useType;
    }
}
